using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._BusinessAnalystTools._SuitabilityAnalysis
{
    /// <summary>
    /// <para>Add Variable Based Suitability Criteria</para>
    /// <para>Adds criteria based on the values calculated for the input layer using the Enrich Layer tool.</para>
    /// <para>根据使用丰富图层工具为输入图层计算的值添加条件。</para>
    /// </summary>    
    [DisplayName("Add Variable Based Suitability Criteria")]
    public class AddVariableBasedSuitabilityCriteria : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddVariableBasedSuitabilityCriteria()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_analysis_layer">
        /// <para>Input Suitability Analysis Layer</para>
        /// <para>The Suitability Analysis layer that will be used in the analysis.</para>
        /// <para>将在分析中使用的适宜性分析图层。</para>
        /// </param>
        /// <param name="_variables">
        /// <para>Variables</para>
        /// <para>The variables from which the suitability criteria will be determined.</para>
        /// <para>确定适宜性标准的变量。</para>
        /// </param>
        public AddVariableBasedSuitabilityCriteria(object _in_analysis_layer, List<object> _variables)
        {
            this._in_analysis_layer = _in_analysis_layer;
            this._variables = _variables;
        }
        public override string ToolboxName => "Business Analyst Tools";

        public override string ToolName => "Add Variable Based Suitability Criteria";

        public override string CallName => "ba.AddVariableBasedSuitabilityCriteria";

        public override List<string> AcceptEnvironments => ["baDataSource", "workspace"];

        public override object[] ParameterInfo => [_in_analysis_layer, _variables, _out_analysis_layer, _out_criteria_name];

        /// <summary>
        /// <para>Input Suitability Analysis Layer</para>
        /// <para>The Suitability Analysis layer that will be used in the analysis.</para>
        /// <para>将在分析中使用的适宜性分析图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Suitability Analysis Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_analysis_layer { get; set; }


        /// <summary>
        /// <para>Variables</para>
        /// <para>The variables from which the suitability criteria will be determined.</para>
        /// <para>确定适宜性标准的变量。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Variables")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _variables { get; set; }


        /// <summary>
        /// <para>Output Suitability Analysis Layer</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Suitability Analysis Layer")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_analysis_layer { get; set; }


        /// <summary>
        /// <para>Output Criteria Name</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Criteria Name")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public List<object> _out_criteria_name { get; set; }


        public AddVariableBasedSuitabilityCriteria SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}